<template>
  <div>
    <common-head title="个人中心"/>
    <div class="wrap">
      <div class="wrap-imgs">
        <img class="wrap-img" src="../../assets/456.jpg" alt="">
        <h2>小萌新</h2>
      </div>
      <div class="user">
        <p>我的订单 <span>全部订单 ></span></p>
        <van-grid :column-num="3">
          <van-grid-item to="/comfirmOrder" icon="gold-coin" text="待付款" />
          <van-grid-item icon="gift-card" text="今日配送" />
          <van-grid-item icon="smile-comment" text="待评价" />
        </van-grid>
      </div>
      <div class="coin">
        <van-grid>
          <van-grid-item icon="coupon-o" text="优惠券" />
          <van-grid-item icon="ecard-pay" text="权益卡" />
          <van-grid-item icon="after-sale" text="余额" />
          <van-grid-item icon="gem-o" text="会员积分" />
          <van-grid-item to="/contactLists" icon="location-o" text="收货地址" />
          <van-grid-item icon="bulb-o" text="生日纪念提醒" />
          <van-grid-item icon="star-o" text="我的收藏" />
          <van-grid-item to="/search" icon="clock-o" text="浏览记录" />
        </van-grid>
      </div>
      <div class="coin">
        <van-grid>
          <van-grid-item icon="service-o" text="联系客服" />
          <van-grid-item icon="question-o" text="帮助中心" />
          <van-grid-item icon="warning-o" text="关于花礼" />
          <van-grid-item icon="setting-o" text="设置" />
        </van-grid>
      </div>
    </div>
    <common-tab/>
  </div>
</template>

<script>
import CommonHead from '../../components/CommonHead'
import CommonTab from '../../components/CommonTab'
export default {
  components: { CommonHead, CommonTab },
  data () {
    return {
      userInfo: localStorage.getItem('userInfo')
    }
  }
}
</script>

<style lang="scss" scoped>
.wrap{
  margin-bottom: 50px;
  .wrap-imgs{
    margin-top: 20px;
    display: flex;
    padding: 0 20px;
    img{
      width: 80px;
      border-radius: 40px;
    }
    h2{
      font-size: 30px;
      line-height: 70px;
      margin-left: 20px;
      color: #333;
    }
  }
  .user{
    width: 96%;
    background: #fff;
    margin: 10px auto 10px;
    padding: 0px 10px 5px;
    box-sizing: border-box;
    border-radius: 5px;
    p{
      border-bottom: 1px solid #eee;
      font-size: 18px;
      color: #333;
      line-height: 40px;
      span{
        float: right;
      }
    }
  }
  .coin{
    width: 96%;
    background: #fff;
    margin: 10px auto;
    padding: 0px 10px 5px;
    box-sizing: border-box;
    border-radius: 5px;
  }
}
</style>
